|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /etc/resolvconf/update-libc.d/ |
Upload File : |
#!/bin/sh -e
# we only need to copy this in if the service is already running.
# if it's not running, it'll get picked up by the init script on start.
/usr/sbin/service postfix status >/dev/null 2>&1 || exit 0
QUEUEDIR="$(/usr/sbin/postconf -hx queue_directory 2>/dev/null || true)"
if [ -n "$QUEUEDIR" ]; then
cp /etc/resolv.conf "${QUEUEDIR}/etc/resolv.conf"
/usr/sbin/service postfix reload >/dev/null 2>&1 || exit 0
fi
exit 0